package data;

import java.util.Map;

public class CustomerFingerDao {
	public static CustomerFingerBean select(DaoSession daoSession,
			Map<String,Object> params){
		return (CustomerFingerBean)daoSession.selectOne(
				"FINGERDB_CUSTOMERFINGER.selectByKey", params);
	}
	
	public static void insert(DaoSession daoSession, CustomerFingerBean finger){
		daoSession.insert("FINGERDB_CUSTOMERFINGER.insert", finger);
	}
	
	public static int update(DaoSession daoSession, CustomerFingerBean finger){
		return daoSession.update("FINGERDB_CUSTOMERFINGER.update", finger);		
	}
	
	public static int delete(DaoSession daoSession, String identifyno){
		return daoSession.delete("FINGERDB_CUSTOMERFINGER.delete", identifyno);
	}	

	public static int clearByIdentifyno(DaoSession daoSession, Map<String,Object> params){
		return daoSession.update("FINGERDB_CUSTOMERFINGER.clearByIdentifyno", params);
	}
}
